package de.consileon.resisweb.client.panel.suchen;

import com.google.gwt.core.client.GWT;
import com.google.gwt.dom.client.SpanElement;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.uibinder.client.UiHandler;
import com.google.gwt.user.client.ui.Anchor;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Widget;


public class SuchenViewImpl extends Composite implements SuchenView {

	
	private static SuchenViewImplUiBinder uiBinder = GWT.create(SuchenViewImplUiBinder.class);
	interface SuchenViewImplUiBinder extends UiBinder<Widget, SuchenViewImpl>
	{
	}


	@UiField SpanElement nameSpan;
	@UiField Anchor goodbyeLink;
	@UiField Button button;
	private Presenter listener;
	private String name;

	
	public SuchenViewImpl()
	{
		initWidget(uiBinder.createAndBindUi(this));
	}
	
	@Override
	public void setName(String name)
	{
		this.name = name;
		nameSpan.setInnerText(name);
	}

	@Override
	public void setPresenter(Presenter listener) {
		this.listener=listener;

	}
	
	@UiHandler("button")
	void onClickGoodbye(ClickEvent e)
	{
		
	}

}
